
package Terror;


import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;

/**
 * @author Maria Fernanda Martinez, Adrian Martinez, Darwin Rivas
 */

public class TerrMIDlet extends MIDlet {
  
  boolean play=false;
   
    private Command exitCommand ;
    Terror2MIDPCanvas canvas = new Terror2MIDPCanvas(this);
    TerrorMIDPCanvas canvas1 = new TerrorMIDPCanvas(this);
    StartMIDPCanvas  inicio = new StartMIDPCanvas(this);

   
    /**
     *
     */
    public void startApp() {
      
           Display.getDisplay(this).setCurrent(inicio);
    }       
    /**
     *
     */
    public void pauseApp() {
    }
    
    
    /**
     *
     * @param unconditional
     */
    public void destroyApp(boolean unconditional) {
              
    }
    
    /**
     *
     * @param command
     * @param displayable
     */
    public void commandAction(Command command, Displayable displayable) {  
        if (command == exitCommand) { 
            
            destroyApp(true); 
            notifyDestroyed();
        } 
    }
}